#include"comm.hpp"

int main()
{
    int shmid= Createshm();
    char* shmadd=static_cast<char*>(shmat(shmid,NULL,0));

    //从共享内存中读取数据
    while(true)
    {
        cout<<"Enter : "<<shmadd<<endl;     
        sleep(1);   
    }

    return 0;
}